<?php
/**
 * Created by PhpStorm.
 * User: 虚空之翼
 * Date: 2017/8/9 下午1:25
 */

namespace app\index\controller;


use think\Controller;
use think\Session;
use Hooklife\ThinkphpWechat\Wechat as WechatServer;
class News extends  Base
{

    public  function  index(){
     $a =session('openid');
        $b =session('RedirectUrl');

        $res =  WechatServer::app()->user->get('oSaaIwv54VD76WQAHAw4lf1mx7Mg');


       //echo  json_encode($a);
        echo json_encode($b);
        //echo json_encode(session('test2'));

    }


}